from model import Model
    
class Item(Model):
    def __init__(self, _dict):
        Model.__init__(self, _dict)
    
        self.name = _dict['name']
        self.description = _dict['description']
        self.year = _dict['year']
        self.price = _dict['price']
        self.status = _dict['status']

    def __repr__(self):
        return '<Item %r>' % (self.name)

if __name__ == '__main__':
    # create table
    #db.drop_all()
    #db.create_all()
    pass